<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
<head>
 	<%@ include file="/core/memberMeta.jsp"%>
	<script type="text/javascript"> 
		$(function() {
		    $('#submit').click(function() {
		    	var checkSubmitFlg = true; 
		    	
				 
				if ($("#myTwoPassword").val() == "") {
					alert("请输入安全密码。");
				 
					checkSubmitFlg= false;
				}
		    	 
		    	if(checkSubmitFlg==true){
		    		
		    		var this_ = this;
			    	this_.setAttribute("disabled", true);  
			    	this_.value="请稍等，提交中...";  
			        $.ajax({
			            url: '<%=basePath%>/member/member/memberYuanActive.shtml',
			            type: 'post',
			            dataType:'json',
			            data: $("#commitForm").serializeArray(),
			            success: function(result) {
			            	 if(result.success==true){
			            	 	 alert("恭喜您，代理商原点报单成功。");
			            		 
			            		 location.reload();//刷新页面   
			            	 }else{
			            	 	 alert("原点报单失败。"+result.msg);
			            	 	 location.reload();//刷新页面   
			            	 }
			            	 
			            	 //放到回调里
			            	 this_.removeAttribute("disabled"); 
			        		 this_.value="提  交";  
			            }
			        });
			        
			        
            	 	 
		    	}
		    	
		    });
		});
	</script>
</head>

<body >
    <script src="<%=basePath%>/resources/memberCss/assets/js/theme.js"></script>
       
        <!-- 内容区域 -->
       
            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                        <div class="page-header-heading"><span class="am-icon-user page-header-heading-icon"></span> 原点复投</div>
                        <p class="page-header-description">欢迎光临三顺生物科技平台</p>
                    </div>
                     
                </div>

            </div>

            <div class="row-content am-cf">

                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">原点复投</div> 
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">
 
                            <div class="am-scrollable-horizontal ">
                                <form  name="commitForm" id="commitForm" class="am-form tpl-form-border-form tpl-form-border-br"  method="post"  >
                                   
									<input type="hidden" name="token" value="${token}" />
                                    <table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black "  id="example-r">
                                    	<tbody>

											<tr> 
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;width: 40%;">代理商账号：</td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;width:60%;">
					                            	${loginName}
					                            </td>
					                       </tr>
					                       <tr>  
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;">投资级别： </td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;">
					                            	 ${dailiTitle}（投资额：${dailiPayNum}）
					                            </td>
					                       </tr>
					                        
					                        <tr>
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;" >我的现金积分 ：</td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;" >
					                            	 ${money}
					                            </td>
					                       
					                        	
					                       </tr>
					                       <tr>
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;" >我的注册积分 ：</td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;" >
					                            	 ${ele}
					                            </td>
					                       
					                        	
					                       </tr>
					                       
					                      
					                       <tr>
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;" >我的重消：</td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;">
					                            	${chuangye}
					                            </td>
					                       </tr>
					                       <tr>
					                        	<td style="text-align: right;font-weight:bold;font-size: 14px;" >使用积分种：</td>
					                        	<td style="text-align: left;font-weight:bold;font-size: 14px;">
					                            	<select data-am-selected="{searchBox:0}"   id="useType" name="useType">
														<option value="10">现金积分</option>
														<option value="20">购物积分</option>
														<option value="30">重消</option>
													</select>
					                            </td>
					                       </tr>
					                        
					                       <tr>
												<td style="text-align: right;font-weight:bold;font-size: 14px;">
													安全密码：
												</td>
												<td style="text-align: left;font-weight:bold;font-size: 14px;">
													<input type="password" id="myTwoPassword" name="myTwoPassword" class="form-control" />
												</td>
										   </tr>
					                       
											 
											<tr>
			
												<td style="text-align: center;vertical-align:middle;" colspan="2">
													<button type="button" id="submit" name="submit" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
												</td>
			
			
											</tr>
			
										</tbody>     
                                         
                                    </table>
                                    
                                </form>
                            </div>
                         </div>
                     </div>
                 </div>
             </div>
        
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui2.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/amazeui.datatables.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/dataTables.responsive.min.js"></script>
    <script src="<%=basePath%>/resources/memberCss/assets/js/app.js"></script>

</body>


